<div class="sl-wrap">
    <div class="sl-container">
        <a href="javascript:void(0)" class="search-menu">
            <span>筛选条件</span>
            <i class="glyphicon glyphicon-chevron-up"></i>
            <i class="glyphicon glyphicon-chevron-down"></i>
        </a>
        <span class="input-icon icon-right">
            <input type="text" ng-model="key" class="form-control" placeholder="输入查询关键词" ng-keyup="keyUp($event)">
            <i id="btn-search" class="glyphicon glyphicon-search" ng-click="searchSubmit()"></i>
        </span>
    </div>
    <!--<div class="sl-bar">
        <span class="sl-title">已选条件:</span>
        <a class="sl-param" href="javascript:void(0)" ng-repeat="v in searchModel.type track by $index" key="{{v.id}}" value="{{v.name}}">
        	<span ng-bind="v.name"></span>
            <i class="fa fa-close"></i>
        </a>
    </div>-->
    <!--<div class="sl-bar">
        <span class="sl-title">已选条件:</span>
        <a class="sl-param" href="javascript:void(0)" ng-repeat="v in searchModel.type track by $index" key="{{v.id}}" value="{{v.name}}">
        	<span ng-bind="v.name"></span>
            <i class="fa fa-close"></i>
        </a>
    </div>-->
    <div class="search-condition">
        <div class="no-record" ng-if="!searchList||searchList.length==0"><span class="label label-warning">暂无搜索条件</span></div>
        <div class="search-list">
            <dl class="sl-box" ng-show="$state.includes('app.record')||$state.includes('app.servicing')||$state.includes('app.danger')">
                <dt class="sl-key"><span ng-bind="searchParams.label"></span>:</dt>
                <dd class="sl-value sl-date">
                    <div class="form-group ">
                        <div class="date-wrap">
                            <div class="date-box start-box" ng-class="{ 'has-error' : deviceForm.StartAt.$dirty&&deviceForm.StartAt.$invalid}">
                                <p class="input-group start-box" ng-click="openDate($event,'date.openStarted')" >
                                    <input type="text" name="StartAt" class="form-control" datepicker-options="dateOptions" datepicker-popup="{{format}}" current-text="今天" clear-text="清除" close-text="关闭" ng-model="searchParams.begintime" is-open="date.openStarted" readonly="readonly" placeholder="开始日期" required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default" ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                            </div>
                            <span class="date-txt">至</span>
                            <div class="date-box end-box" ng-class="{ 'has-error' : deviceForm.EndAt.$dirty&&deviceForm.EndAt.$invalid}">
                                <p class="input-group start-box" ng-click="openDate($event,'date.openEnded')">
                                    <input type="text" name="EndAt" class="form-control" datepicker-options="dateOptions" datepicker-popup="{{format}}" current-text="今天" clear-text="清除" close-text="关闭"  ng-model="searchParams.endtime" is-open="date.openEnded" readonly="readonly" placeholder="结束日期" required/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                </p>
                            </div>
                        </div>
                    </div>
                </dd>
            </dl>
            <dl class="sl-box" ng-repeat="v in searchList track by $index">
                <dt class="sl-key"><span ng-bind="v.typeName"></span>(<span ng-if="v.isRadio">单选</span><span ng-if="!v.isRadio">多选</span>):</dt>
                <dd class="sl-value">
                    <a class="sl-item" ng-class="{active:u.checked}" href="javascript:void(0)" ng-repeat="u in v.typeList track by $index" key="{{u.Id}}" value="{{u.Name}}" is-radio="{{v.isRadio}}" type="{{v.typeId}}">
                        <span ng-bind="u.Name"></span>
                    </a>
                </dd>
            </dl>
        </div>
    </div>
</div>
